package dongchel.vrp.rachelinsertion;

import java.util.Comparator;

import dongchel.vrp.entity.City;
import dongchel.vrp.entity.MultiObjectiveObject;
import dongchel.vrp.entity.Route;

public class InsertionObject{
	private Route route;
	private City city;
	private int position;
	
	private boolean feasibility;
	
	private MultiObjectiveObject objectiveValue;
	private MultiObjectiveObject penaltyValue;
	
	public InsertionObject(){}	
	
	
	public Route getRoute() {
		return route;
	}
	public void setRoute(Route route) {
		this.route = route;
	}
	public City getCity() {
		return city;
	}
	public void setCity(City city) {
		this.city = city;
	}
	public int getPosition() {
		return position;
	}
	public void setPosition(int position) {
		this.position = position;
	}
	public boolean isFeasibility() {
		return feasibility;
	}
	public void setFeasibility(boolean feasibility) {
		this.feasibility = feasibility;
	}
	public MultiObjectiveObject getObjectiveValue() {
		return objectiveValue;
	}
	public void setObjectiveValue(MultiObjectiveObject objectiveValue) {
		this.objectiveValue = objectiveValue;
	}
	public MultiObjectiveObject getPenaltyValue() {
		return penaltyValue;
	}
	public void setPenaltyValue(MultiObjectiveObject penaltyValue) {
		this.penaltyValue = penaltyValue;
	}
	public int compare(InsertionObject io){
		return this.getObjectiveValue().compare(io.getObjectiveValue());
	}
}
